import axios from 'axios'
import { gettoken } from '../utils/token'
const jiekou = axios.create({
  baseURL: 'http://localhost:8000'
})

const userjie = function () {
  return jiekou({
    url: '/v1_0/user/profile',
    method: 'get',
    headers: {
      Authorization: `Bearer ${gettoken().token}`
    }
  })
}
export { userjie }
